﻿namespace Entities.Enumeration {

    public class UserRole {

        public readonly static UserRole Super = new UserRole(SUPER, "Super User");
        public readonly static UserRole Admin = new UserRole(ADMIN, "Administrator");
        public readonly static UserRole Sales = new UserRole(SALES, "Sales");
        public readonly static UserRole Free  = new UserRole(FREE,  "Free Account");

        public const int SUPER = 1000;
        public const int ADMIN = 900;
        public const int SALES = 100;
        public const int FREE  = 800;

        public int Role     { get; set; }
        public string Name  { get; set; }

        public UserRole(int role, string name) {
            Role = role;
            Name = name;
        }

    }

}